package com.sinosoft.perfect.system._roleSystem.dao;

import java.sql.SQLException;
import java.util.List;

import com.sinosoft.perfect.system._.po.TRoleSystem;
import com.sinosoft.perfect.system._.po.TUserRolesysRelation;
import com.sinosoft.perfect.system._roleSystem.vo.AllUsersInOneRoleSystemVO;
import com.sinosoft.perfect.system._roleSystem.vo.RoleSystemVO;

public interface IRoleSystemDAO {

	public Object insertByTRoleSystem(TRoleSystem troleSystem) throws SQLException;

	public List<TRoleSystem> selectByTRoleSystem(TRoleSystem troleSystem) throws SQLException;

	public List<RoleSystemVO> selectTRoleSystemFromUnit(String unitId) throws SQLException;

	public List<RoleSystemVO> selectTRoleSystemFromUser(String userId) throws SQLException;

	public int updateTRoleSystemByPrimaryKey(TRoleSystem troleSystem) throws SQLException;

	public int updateTRoleSystemNotNullByPrimaryKey(TRoleSystem troleSystem) throws SQLException;

	public int deleteTRoleSystemByPrimaryKey(TRoleSystem troleSystem) throws SQLException;

	public void deleteTRoleSystemUserByRoleSystemPrimaryKey(TRoleSystem troleSystem) throws SQLException;

	public void deleteTRoleSystemUnitByRoleSystemPrimaryKey(TRoleSystem troleSystem) throws SQLException;

	public List<AllUsersInOneRoleSystemVO> selectExitsUsers(TRoleSystem troleSystem) throws SQLException;

	public void deleteTUserRoleSystem(TUserRolesysRelation tUserRolesysRelation) throws SQLException;
}
